Magic with merlin : maintaining insertion order merlin的魔力:維護插入順序
Method of the map to get the map entries in insertion order 方法來獲取按插入順序排列的映射表條目。
You can walk through the values in insertion order like this )時,您可以按插入順序遍歷那些值,如下所示:
Maintaining insertion order 維護插入順序
Supports a second ordering option : maintaining the linked list in access order instead of insertion order 支持第二種排序選項:按存取順序而非插入順序維護鏈表。
After filling up our sets, we can examine their elements to see if the linked set maintained its elements in insertion order, and then compare the results to the standard hash set 在填滿了集之后,我們可以檢查它們的元素,看看鏈接的集是否按插入順序維護其元素,然后與標準散列集比較結果。
Follow along with john zukowski as he demonstrates how to iterate through the elements of a hashed collection in insertion order and how to maintain elements in access order with the new collections framework implementations in j2se, version 1.4 讓我們跟隨johnzukowski的演示,學習如何按插入順序迭代散列集合中的各個元素,以及如何使用j2se,版本1.4中的新collectionsframework按存取順序維護元素。
Under normal circumstances, this new second path would follow the insertion order, meaning that the iterator for the collection will return the elements in their insertion order not in the order that their hashing codes have them incorporated into the collection, but 正常情況下,這個新的第二路徑會遵循插入順序,這意味著集合的迭代器將按照元素的插入順序返回元素(而不按它們的散列碼將其組合成一個集合的順序),但
Under normal circumstances, this new second path would follow the insertion order, meaning that the iterator for the collection will return the elements in their insertion order not in the order that their hashing codes have them incorporated into the collection, but 正常情況下,這個新的第二路徑會遵循插入順序,這意味著集合的迭代器將按照元素的插入順序返回元素(而不按它們的散列碼將其組合成一個集合的順序),但